﻿using PARK.Common.Const;
using SqlSugar;
using System;

namespace PARK.Welfare.Entitys
{
    /// <summary>
    /// 福利发放
    /// </summary>
    [SugarTable("welfare_detail")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class WelfareDetailEntity
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Detailsid", IsPrimaryKey = true)]
        public string Detailsid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "BillId")]
        public string BillId { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        [SugarColumn(ColumnName = "EmployeeId")]
        public string EmployeeId { get; set; }

        /// <summary>
        /// 工号
        /// </summary>
        [SugarColumn(ColumnName = "JobNo")]
        public string JobNo { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [SugarColumn(ColumnName = "ReallName")]
        public string ReallName { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        [SugarColumn(ColumnName = "DepartId")]
        public string DepartId { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn(ColumnName = "DepartName")]
        public string DepartName { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        [SugarColumn(ColumnName = "CardNo")]
        public string CardNo { get; set; }

        /// <summary>
        /// 发放金额
        /// </summary>
        [SugarColumn(ColumnName = "Amount")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Summary")]
        public string Summary { get; set; }

        /// <summary>
        /// 是否已入账 0否1是
        /// </summary>
        [SugarColumn(ColumnName = "IsAccounted")]
        public int? IsAccounted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "AccountedDate")]
        public DateTime? AccountedDate { get; set; }

        /// <summary>
        /// 单据编号
        /// </summary>
        [SugarColumn(ColumnName = "BillCode")]
        public string BillCode { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary>
        [SugarColumn(ColumnName = "BillDate")]
        public DateTime? BillDate { get; set; }

        /// <summary>
        /// 所属时段开始
        /// </summary>
        [SugarColumn(ColumnName = "BegDate")]
        public DateTime? BegDate { get; set; }

        /// <summary>
        /// 所属时段截止
        /// </summary>
        [SugarColumn(ColumnName = "EndDate")]
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 已消费额
        /// </summary>
        [SugarColumn(ColumnName = "ConSumAmt")]
        public decimal ConSumAmt { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        [SugarColumn(ColumnName = "Balance")]
        public decimal Balance { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        [SugarColumn(ColumnName = "DbDate")]
        public DateTime? DbDate { get; set; }

        /// <summary>
        /// 业务类型 1福利发放  2福利清零
        /// </summary>
        [SugarColumn(ColumnName = "BussKind")]
        public int? BussKind { get; set; }

        /// <summary>
        /// 所属公司Id
        /// </summary>
        [SugarColumn(ColumnName = "CompanyId")]
        public string CompanyId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [SugarColumn(ColumnName = "CompanyName")]
        public string CompanyName { get; set; }
    }
}